<template>
  <view>
    <view class="main">
      <view class="box">
        <view class="line" @click="goPage(0)">
          <view class="name">安全中心</view>
          <view class="icon">
            <u-icon name="arrow-right" color="#9A9A9A" size="24rpx"></u-icon>
          </view>
        </view>
        <!-- <view class="line">
          <view class="name">指纹解锁</view>
          <view class="icon">
            <u-switch
              v-model="checked"
              active-color="#4CD964"
              @change="change"
            ></u-switch>
          </view>
        </view> -->
        <view class="line" @click="goPage(1)">
          <view class="name">用户协议</view>
          <view class="icon">
            <u-icon name="arrow-right" color="#9A9A9A" size="24rpx"></u-icon>
          </view>
        </view>
        <view class="line" @click="goPage(2)">
          <view class="name">隐私政策</view>
          <view class="icon">
            <u-icon name="arrow-right" color="#9A9A9A" size="24rpx"></u-icon>
          </view>
        </view>
      </view>
      <view class="box">
        <view class="line" @click="goPage(3)">
          <view class="name">关于我们</view>
          <view class="icon">
            <u-icon name="arrow-right" color="#9A9A9A" size="24rpx"></u-icon>
          </view>
        </view>
      </view>

      <!-- #ifdef APP-PLUS -->
      <view class="box">
        <view class="line" @click="clearCache()">
          <view class="name">清除缓存</view>
          <view class="icon">
            <text class="main">{{ localStorage }}</text>
            <u-icon name="arrow-right" color="#9A9A9A" size="24rpx"></u-icon>
          </view>
        </view>
      </view>
      <!-- #endif -->

      <view class="box last-box">
        <view class="line" @click="goPage(4)">
          <view class="name">意见反馈</view>
        </view>
      </view>
    </view>
    <!-- <view class="footer">
      <button class="btn-disable" @click="logout">退出登录</button>
    </view> -->
  </view>
</template>

<script src="./setting.js"></script>
<style src="./setting.scss" lang="scss"></style>
